import java.util.*;


public class Main {
    /**
     * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
     *
     *
     * @param numbers int整型一维数组 
     * @return bool布尔型
     */
    public static boolean IsContinuous(int[] numbers) {
        // write code here
        Arrays.sort(numbers);

        int countZero = 0;
        for (int num : numbers){
            if(num == 0){
                countZero ++;
            }
        }
        int min = countZero;
        int max = countZero + 1;
        int gap = 0;
        while(max < numbers.length){
            if(numbers[max] == numbers[min]){
                return false;
            }
            gap += numbers[max] - numbers[min] - 1;
            min = max;
            max++;
        }
        return countZero >= gap;
    }

    public static void main(String[] args) {
        int[] arr = {6,0,2,0,4};
        System.out.println(IsContinuous(arr));
    }
}